-
-
Notifications
You must be signed in to change notification settings - Fork 27
perf: reduce call of has when not necessary #388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
🤖 Augment PR SummarySummary: Reduces overhead in hot LRU operations by avoiding 🤖 Was this summary useful? React with 👍 or 👎 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
augment review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review completed. No suggestions at this time.
Comment augment review to trigger a new review at any time.
|
that's previously been a deopt due to the type assignment and verification. do you have an IR render that shows it's ok? i used to use irhydra, and then deoptigate to verify that path. |
This is possible because the variable
no, sorry |
|
the you're basically swapping the to clarify; i already did that work, so if you want to land the change you would need to do the new work to show it's safe. |
|
i should also clarify, that the you need a good reason to propose a subtle, but significant change, and benchmarks. |
just a micro-optimization.
Reduces overhead in hot LRU operations by avoiding has() checks when a direct cache-entry lookup is sufficient.